﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Header_Contain.ascx.cs" Inherits="UserControl_Header_Contain" %>

<%@ Register Src="~/UserControl/Flash_Banner.ascx" TagName="FlashBanner" TagPrefix="uc1" %>
<%@ Register Src="~/UserControl/Header_Tag.ascx" TagName="Header_Tag" TagPrefix="uc2" %>

<script type='text/javascript'>
<!--
function clickDivButton(id)
{
    curTCID = id;
    zgc0GobalService.getStartButton($get("<%= gcAccount2.ClientID %>").innerHTML, updateDivStartJS);
}
function updateDivStartJS(result)
{
    updateDivStart(result);
}
function btnReturnHome()
{
    window.location = "../ZGCLOGINUSER/zgc0LoginUser.aspx";
}

function btnKH(id, ctrlid)
{
    zgc0GobalService.LoadSubMenu(id, ctrlid, $get("<%= gcAccount2.ClientID %>").innerHTML, afterBntHK);
    //BuildDivMeNuSelect(id);
    
}
function onItemMenuClickTest(id, filename, order)
{
    window.location = filename;
}
function afterBntHK(result)
{
    var tail = result.pop();
    var  divShow= $get(gcDIVShowSelectCID);
    var style = 'gcDIVShowMathSelect2';
    if(result.length > 8) 
        style = 'gcDIVShowMathSelect3';
    if(result.length > 15) 
        style = 'gcDIVShowMathSelect4';
    var strGobal="";
    for( iM=0; iM< result.length; iM++)
    {
        var newTableName = result[iM].TableName.replace("tbl_", "");
       
        var value='';
        var moreText=result[iM].FormName;
        var filename = result[iM].Tab + newTableName + ".aspx";
        var idstr = "itemid" + iM;
        var str = "<div  id=\""+idstr+"\" class='gcAUCMeNu' onclick='onItemMenuClickTest(\""+idstr+"\",\""+filename+"\",\""+iM.toString()+"\"); ' >"
              +"<div class='gcLAC' >"
              +  "<div class='gcLAC1'>" + value + "</div>"
              + "<div class='gcLACE'>" + moreText + "</div>"
              +"</div>" 
              +"</div><div style='clear:both;'></div>"; 
              strGobal+=str;  
          
    }
    var text = $get(tail.ctrlid);
    divShow.innerHTML =  "<div ONMOUSEOVER='this.focus()' ONMOUSEOUT='this.blur()' class='"+style+"'>"+strGobal+"</div>" ;

   divShow.style.display = "block";

   if(text)
   {
      var divBounds=Sys.UI.DomElement.getBounds(text);
      var position = new Sys.UI.Point(divBounds.x,divBounds.y+divBounds.height);
      if(tail.isLastElement>0)
        position = new Sys.UI.Point(divBounds.x + divBounds.width - 180,divBounds.y+divBounds.height);
      var div = $get(gcDIVShowSelectCID);
     $common.setLocation(div,position);
   }
}

function btngcHelper(id)
{
}
-->
</script>

<div runat='server' id='gcAccount2' style='display:none !important;' > </div>
<asp:Label style='display:none;' Width='1px' ID='lHideP2' Text='10|100' runat='server' ></asp:Label> 
<div class="qsfWrap" runat='server' id='ContentHeader'>
        <%--<div style="width:auto; height:60px; background-color:#3c3945;"> --%>
        <div style="width:auto; height:64px; background-color:#003939;"> 
            <div style="height:60px;background-repeat:no-repeat" runat="server" id="StartDiv" class='gcFunctionGobal'                       onclick='clickDivButton(this.id)' ></div> 
        
        <div id='divbtnInBienNhan' style="margin:-55px 0px 0 80px;float:left" class='gcNameTitleNew' runat='server' onclick='btnReturnHome();'>Về trang chủ</div> 
        <div id='divzgc0Helper' style='margin:-55px 0px 0 180px;float:left;' class='gcNameTitleNew' runat='server' onclick='btnzgc0Helper(this.id);'>Giúp đỡ?</div> 
        <div id='div1' style='margin:-55px 0px 0 280px;float:left; color:#FF8800;text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); font-size:18px;' runat="server" >Welcome to CRM Software.</div> 
        <div style="clear:both;"></div>
        <div class="divLink" style="position: relative;float:right;margin:-70px 0px 0 0; cursor: pointer; color: White; font-family: Tahoma; font-weight: bold;">
        <asp:Label ID='lblWelcome' CssClass="divLink" runat='server' Text='Xin chào:'></asp:Label>|<a class="divLink" href="../Common/Logout.aspx">Thoát </a>
        </div>
        
        
        <div runat='server' id='ContentMenu'> </div>
        
        <%--<div id='menuQLKH' style='margin:-27px 719px 0 0;float:right;' class='gcDivButtonNewMeNu' runat='server' onclick='btnKH(this.id);'>Quản lý khách hàng</div> 
        <div id='menuQLNV' style='margin:-28px 579px 0 0;float:right;' class='gcDivButtonNewMeNu' runat='server' onclick='btnKH(this.id);'>Quản lý nhân sự</div> 
        <div id='menuQLBC' style='margin:-28px 440px 0 0;float:right;' class='gcDivButtonNewMeNu' runat='server' onclick='btnKH(this.id);'>Quản lý báo cáo</div> 
        <div id='menuQLXE' style='margin:-28px 339px 0 0;float:right;' class='gcDivButtonNewMeNu' runat='server' onclick='btnKH(this.id);'>Quản lý xe</div> 
        <div id='menuQLKHO' style='margin:-28px 230px 0 0;float:right;' class='gcDivButtonNewMeNu' runat='server' onclick='btnKH(this.id);'>Quản lý kho</div> --%>
        
        </div>
</div>